//
//  HisunStr.h
//  IPos
//
//  Created by hisuntech on 11-8-11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#include <stdio.h>


@interface EncryptStr : NSObject {
	
}
//-(id)init;
//-(NSString *)getRandStr:(int)length;
//-(NSString*) byte2hex:(Byte [])bytes length:(int)length;
//-(NSString*) byteArray2hex:(NSArray *)bytes; 
//-(NSMutableArray *)hex2byte:(NSString *)str;

@property(nonatomic)int byteArryLen;
@property(nonatomic)int intArrayLen;


+(EncryptStr*)getInstance;

-(NSString*)startEncrypt:(NSString*)srcData key:(NSString*)key;
-(NSString*)startDeencrypt:(NSString*)encData key:(NSString*)key;

-(NSData*)startEncryptData:(NSData*)srcData key:(NSString*)key;
@end
